package com.myschool.server.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="solution")
public class Solution extends BaseEntity {
	@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	private User student;
	
	@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	private HomeWork homeWork;

	/**
	 * @return the student
	 */
	public User getStudent() {
		return student;
	}

	/**
	 * @param student the student to set
	 */
	public void setStudent(User student) {
		this.student = student;
	}

	/**
	 * @return the homeWork
	 */
	public HomeWork getHomeWork() {
		return homeWork;
	}

	/**
	 * @param homeWork the homeWork to set
	 */
	public void setHomeWork(HomeWork homeWork) {
		this.homeWork = homeWork;
	}
	
	
}
